<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新增用户</title>
<style type="text/css">
html, body {
	width: 100%;
	padding: 0;
	margin: 0;
	text-align: center;
}
</style>
</head>
<body>
	<h2>新增用户</h2><br><br>
	<form action="<%=request.getContextPath() %>/user/userSubmit.do" method="post">
		<c:if test="${userId != null}">
			<input type="hidden" id="userId" name="userId" value="${userId}">
		</c:if>
		用户名：<input type="text" id="username" name="username" value="${user.name}"/><br>
		年  龄：<input type="text" id="age"  name="age" value="${user.age}"/><br><br>
		<input type="submit">
	</form>
</body>
</html>